export const buildShareObject = (setting = {}, user = {}) => {
	uni.showShareMenu({
		withShareTicket: true
	});
	wx.updateShareMenu({
		isPrivateMessage: true,
		withShareTicket: true,
		success(res) {
			console.log('updateShareMenu: ', res);
		},
		fail() {}
	});
	const { id: uid, nickname, phone, email } = user
	const { id: sid, currentCardUser = {}, companyName, companyAddr: addr } = setting
	let { post } = currentCardUser
	if (!post) post = (user.posts || []).filter(p => p.isMain)[0]?.postName
	return {
		nickname,
		post,
		companyName,
		// phone,
		// email,
		addr,
	}
}